package main

import (
	"fmt"
	"log"

	"github.com/hypersleep/easyssh"
)

func main() {
	ssh := &easyssh.MakeConfig{
		User:   "pi",
		Server: "192.168.88.242",
		Key:    "/.ssh/id_rsa",
		Port:   "22",
		// Password: "rasberry",
	}

	err := ssh.Scp("main.go")
	if err != nil {
		log.Fatal(err)
	}
	if resp, err := ssh.Run("cat main.go"); err != nil {
		log.Fatal(err)
	} else {
		fmt.Println(resp)
	}
}
